home *** CD-ROM | disk | FTP | other *** search
- #include <snd.h>
- #include "dabe.h"
-
- extern short soundflag;
-
- void open_sound()
- {
- if( soundflag == ON){
- SND_key_off( 0 );
- SND_inst_change( 0, 66 );
- SND_key_on( 0, 60, 40 );
- }
- }
-
- void error_sound()
- {
- SND_key_off( 3 );
- SND_inst_change( 3, 102 );
- SND_key_on( 3, 60, 100 );
- }
-
- void sound_off()
- {
- SND_key_off( 0 );
- SND_key_off( 1 );
- SND_key_off( 2 );
- SND_key_off( 3 );
- }
-
- void msg_sound()
- {
- SND_key_off( 3 );
- SND_key_on( 3, 96, 100 );
- }
-